package com.ruoyi.schoolSys.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资管理对象 materials
 * 
 * @author ruoyi
 * @date 2024-02-07
 */
public class Materials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 物资名 */
    @Excel(name = "物资名")
    private String materialsName;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 描述 */
    @Excel(name = "描述")
    private String descMsg;

    /** 是否删除（1为是，0为否） */
    private Long isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMaterialsName(String materialsName) 
    {
        this.materialsName = materialsName;
    }

    public String getMaterialsName() 
    {
        return materialsName;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setDescMsg(String descMsg) 
    {
        this.descMsg = descMsg;
    }

    public String getDescMsg() 
    {
        return descMsg;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialsName", getMaterialsName())
            .append("number", getNumber())
            .append("unitPrice", getUnitPrice())
            .append("source", getSource())
            .append("descMsg", getDescMsg())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
